/*
 * @Author: yangrongxin
 * @Date: 2021-08-04 17:54:29
 * @LastEditors: yangrongxin
 * @LastEditTime: 2021-09-08 19:10:34
 */
import request, { Request } from '@/restful/index';

/* 发起下单 */
export const placeOrder = async (data: any) =>
  request(Request.Order.placeOrder, data, {
    loading: true,
  });

/* 发起支付 */
export const pay = async (data: any) => request(Request.Order.pay, data);

/* 获取微信支付票据 */
export const getPayTicket = async (data: any) => request(Request.Order.getPayTicket, data);
